package cn.gzsendi.config.mybatis;

import java.lang.annotation.*;

/**
 * @Program: mybatis_test
 * @Description: 数据源注解
 * @Author: tsh
 * @Create: 2021-01-08
 */
@Target({ElementType.TYPE, ElementType.METHOD}) //注解方法，注解类都可以
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface TargetDataSource {

    String name() default "master";

}
